<template>
  <div class="home">
    <van-button type="danger" size="large" @click="logOut">注销登录</van-button>
  </div>
</template>
<script setup lang="ts">
import { showSuccessToast } from 'vant'

const logOut = () => {
  window.localStorage.removeItem('user_id')
  window.localStorage.removeItem('token')
  showSuccessToast('退出成功')
  location.reload()
}
</script>
<style scoped lang="scss"></style>
